package com.briup.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

public class AliPayConfig {
    /*
     * 服务网关  ---  沙箱环境
     */

    private static String serverURL = "https://openapi.alipaydev.com/gateway.do";

    /*
     * 应用id,
     */

    private static String APP_ID = "2021000119674610";

    /*
     * 用户私钥,可以替换成你们的自己的私钥
     *
     */

    private static String APP_PRIVATE_KEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCA1h4fhyLFLxkxyjWmk67GFEEfz5MHdozj97o+3iYYdynbWHHHtBO9GGNBP6mSjzStSNFAdq0/fDEeen7umlGSXV4ZD1we+UAY6CdyoJYgHah1DvPfSH4qzyy9Mg+ka5ahOPDyumyH3zSQ9E+cjPXHLhWw36kzC9R7vzvc0RtAhdbYNbSbWjOOa2L2hVf5qtBoypT0m4h1uqSswdZjtGLNphXol1JgBOJ2S208YuR0NEJJbgMEIgsFBWS3iEwU76h+/t+sw9nnDi+0cUs6F/uRceOaQioJLH3cVt7hs+oCL0nfPXixElZDA2hFNjJiT9kyq6hiqzICsj+rlcxDLKNXAgMBAAECggEACWiZlo/V2DSSUHKF7H5Ieyqrftk30Ym0zEkhDspGWe8J3XzeAkmCT4LibLdreMqAfE8fCOghyssVAzbK4j3eyyOKZaYbgh+NsMPzbYmQrRO9Y58N7DZtEE9E4yQuxEEfJPL1laRLnLiOLC/LSJF6uWsCJoKO5q1sfQUAKCYVKWcBLspWZGSahL2N21TQHBlBZEVd5zFFFpmKqRXYq60TT7CYNWxhK6I4cAtPdinkZxtTu62ftYDN7szni8HkVHJu1zODFBVgIWfMu4/Jz2bjTt/fKdUzlOonQU52dObdj++REOLqrIOXv1hQSJUmnOp0BE6pewEbUFK9bCmqxj+I4QKBgQDwljd7CLEnPDZY34Ir1EIHnDeRStd64zIEYfz19VtEazs2/OFL7C5y09Zbz0iZKjLSNESVzqEczOoqmmGcI+89T59eFbRcyeThbOWBzfs7Wtu8RvxNI5zrXI4qulvqWwE8gPc5f0lAX5GPg/PtwcyveNFNpSWRax2adRS/CuTq3wKBgQCJFx7KRqb3ftA7yaGH4pTjCMNAnHAPSoDbNCtgFQjU9MTzx9d6T0iUGaUgwJSlvVfU6OgzzuI0T7QwISOv7FxZ+yYLL7He9SexlwDa5zUan3gykufcJEO3HWDycwORUK5EHfsr3J2+wfUFvri8i+pY+ErM54h/rFTmUIxyv0VOiQKBgFv+1NAzDqqWF6H8NWZVD7qhPY5NNABFiAatAXF7lJ6g8k+gevXxJgG6hyksJfKLdEt0uRUfofPFV3Va+yAdjYnAPIxZeFJS0TZx0YDFJuAXahagfjFxALvu9F3aTPNcQSjFl8NgrL30zVA3gLrVdFNUu5QZJjho4TUCuCAlJku5AoGAbBXdgc/YnrPOTAU6JR/hEWt8PjnZJEUyeSGVvUh4USa3DhmW62kNKS9bAQq1aENzt3r2cLqBoIri3zuRnoe1fIBGS3WMQOR7KkqLMwwt01K9+unWgrvY48v2/tDtlCnPbAdTXA6yFI9ptuDbWFTcLM9+cjVuanMd8QS651GkvDkCgYBwFIb/LG0Va8epvOY/zKBjYrEtfryYKHQbtFvItv3Mfk80VA9K6xzp4tXsSPMfNSKrtf4Xl4ddU4zJs7EM6+W107YFwGtZrhDjin7Pr+wK6WL5vL2RWAz/vbZUkv0vKWQtuMEkk1FV5xGXtVRUjEGPX/hWFU1EyHTY403jWZgH6A==";
    /*
     * 发送数据的格式,  目前为json
     *
     */

    private static String format = "json";

    /*
     * 设置字符集的编码格式 utf-8
     */

    private static String CHARSET = "utf-8";

    /*
     * 支付宝公钥,  可以替换成你们自己的
     */

    private static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgNYeH4cixS8ZMco1ppOuxhRBH8+TB3aM4/e6Pt4mGHcp21hxx7QTvRhjQT+pko80rUjRQHatP3wxHnp+7ppRkl1eGQ9cHvlAGOgncqCWIB2odQ7z30h+Ks8svTIPpGuWoTjw8rpsh980kPRPnIz1xy4VsN+pMwvUe7873NEbQIXW2DW0m1ozjmti9oVX+arQaMqU9JuIdbqkrMHWY7RizaYV6JdSYATidkttPGLkdDRCSW4DBCILBQVkt4hMFO+ofv7frMPZ5w4vtHFLOhf7kXHjmkIqCSx93Fbe4bPqAi9J3z14sRJWQwNoRTYyYk/ZMquoYqsyArI/q5XMQyyjVwIDAQAB";
    /*
     * 支付宝签名  目前采用的是RSA2
     */

    private static String signType = "RSA2";
    /*
     * 页面跳转同步通知页面   http      ?12345464.外网可以访问的地址
     */



    public static AlipayClient getAlipayClient() {
        return new DefaultAlipayClient(serverURL,APP_ID,APP_PRIVATE_KEY,format,
                CHARSET,ALIPAY_PUBLIC_KEY,signType);
    }
}
